import VueRouter from 'vue-router'

import HomeContainer from './components/tabbar/HomeContainer.vue'
import MemberContainer from './components/tabbar/MemberContainer.vue'
import ShopCarContainer from './components/tabbar/ShopcarContainer.vue'
import SerchContainer from './components/tabbar/SerchContainer.vue'
import NewsList from './components/news/NewList.vue'
import NewsInfo from './components/news/NewInfo.vue'
import PhotoList from './components/photos/PhotoList.vue'
import PhoteInfo from './components/photos/PhotoInfo.vue'

var router = new VueRouter({
    routes: [
        {path:'/',redirect: '/home'},  
        {path:'/home',component: HomeContainer},  
        {path:'/member',component: MemberContainer},
        {path:'/shopcar',component: ShopCarContainer},
        {path:'/serch',component: SerchContainer},        
        {path:'/home/newsList',component: NewsList},
        {path:'/home/newsInfo/:id',component: NewsInfo},
        {path:'/home/photolist',component: PhotoList},
        {path:'/home/photolis/photoinfo',component: PhoteInfo}
    ],
    // 覆盖默认的类，默认的类叫router-link-active
    linkActiveClass: 'mui-active'
})

export default router 